﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace GC_School_of_Careers
{
    public partial class ucexaminationcenter : UserControl
    {
        public ucexaminationcenter()
        {
            InitializeComponent();
            // TODO: This line of code loads data into the 'dtstudent.CUSTOMER' table. You can move, or remove it, as needed.
            this.sUPPLIERTableAdapter.Fill(this.dtexaminationcenter.SUPPLIER);

        }

        private void txtexaminationcentercode_TextChanged(object sender, EventArgs e)
        {
            DataView dv = new DataView();
            dv.Table = this.dtexaminationcenter.Tables[0];
            dv.RowFilter = "CODE Like " + "'%" + txtexaminationcentercode.Text + "%'"; // +txtSearchString.Text;
            dgexaminationcenter.DataSource = dv;
        }

        private void txtexaminationcentername_TextChanged(object sender, EventArgs e)
        {
            DataView dv = new DataView();
            dv.Table = this.dtexaminationcenter.Tables[0];
            dv.RowFilter = "NAME Like " + "'%" + txtexaminationcentername.Text + "%'"; // +txtSearchString.Text;
            dgexaminationcenter.DataSource = dv;
        }

        private void dgexaminationcenter_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {

        }

        private void gbexaminationcenter_Enter(object sender, EventArgs e)
        {

        }
    }
}
